@extends('admin.layouts.content')
@section('script')
<script type="text/javascript" charset="utf-8">
  new Wanyue().layuiAdmin.form({
      list: [
          {type: 'hidden', title: '', name: '_token', verify: '', value: '{{csrf_token()}}' }
          , {type: 'text', title: '登录用户', name: 'email', verify: 'required', value: '{{ @$user->email ?: ""}}'}
          , {type: 'text', title: '手机号码', name: 'mobile', verify: 'required', value: '{{ @$user->mobile ?: "" }}'}
          , {type: 'password', title: '密码', name: 'password', verify: '{{ @!$user->id ? "required" : ""}}', value: ''}
          , {type: 'text', title: '用户名称', name: 'name', verify: 'required', value: '{{ @$user->name ?: ""}}'}
      ]
  }, {
      url: {
          submit: '{{url()->current()}}'
      }
  });
</script>
@endsection
